package org.groupg.practice.guava;

import com.google.common.util.concurrent.AtomicDouble;

public class AtomicVariableExample {
    private static AtomicDouble atomicDouble = new AtomicDouble(10.5);

    public static void main(String[] args) {
        System.out.println("原始值为: " + atomicDouble.get());
        atomicDouble.addAndGet(5.5);
        System.out.println("增加后的值为: " + atomicDouble.get());
    }
}